package main

import (
	"fmt"
	"time"
)

const newLine = "\n"

func showSnakeScreen(a [][n]int) {
	cleanScreen()

	showMapOnScreen(a[:][:])

	fmt.Println(time.Since(GAME_START_TIME))
}

func showMapOnScreen(a [][n]int) {
	screenLines := ""

	for i := range a {
		cLine := a[i]

		strLine := ("|")
		for j := range cLine {
			cValue := cLine[j]

			strLine += (" " + mvShowMap[cValue])
		}
		strLine += (" |")

		screenLines += strLine + newLine
	}

	fmt.Println(screenLines)
}

